package com.springsummer.information.green.webmvc;


import java.lang.reflect.Method;

public class HandlerMethodInfo implements HandlerMethod {

    private String urlPath;

    private Object handleBean;

    private Class<?> handleBeanClass;

    private Method method;

    private  Class<?> returnType;

    private  String className;

    private  String methodName;

    public HandlerMethodInfo() {
    }

    public HandlerMethodInfo(String urlPath, Object handleBean, Class<?> handleBeanClass, Method method, Class<?> returnType, String className, String methodName) {
        this.urlPath = urlPath;
        this.handleBean = handleBean;
        this.handleBeanClass = handleBeanClass;
        this.method = method;
        this.returnType = returnType;
        this.className = className;
        this.methodName = methodName;
    }

    @Override
    public String getUrlPath() {
        return urlPath;
    }

    @Override
    public void setUrlPath(String urlPath) {
        this.urlPath = urlPath;
    }

    @Override
    public Object getHandleBean() {
        return handleBean;
    }

    @Override
    public void setHandleBean(Object handleBean) {
        this.handleBean = handleBean;
    }

    public Class<?> getHandleBeanClass() {
        return handleBeanClass;
    }

    public void setHandleBeanClass(Class<?> handleBeanClass) {
        this.handleBeanClass = handleBeanClass;
    }

    @Override
    public Method getMethod() {
        return method;
    }

    @Override
    public void setMethod(Method method) {
        this.method = method;
    }

    public Class<?> getReturnType() {
        return returnType;
    }

    public void setReturnType(Class<?> returnType) {
        this.returnType = returnType;
    }

    @Override
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

}
